package com.panda.web.controller;

import com.alibaba.fastjson.JSONObject;
import com.panda.core.core.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

/**
 * @Description :
 * @Author folaibu
 * @Date 2021/3/2 20:12
 */
@Path("/hello")
public class DemoController implements RestController {

    @GET
    @Path("/getUser")
    @Override
    public Object execute(HttpServletRequest request, HttpServletResponse response) throws Throwable {
        return new JSONObject() {{
            put("userName", "bufolai");
        }};
    }
}
